package com.yyj;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        Phone p1 = new Phone("13533876711",15,23.2);
        Phone p2 = new Phone("13533876712",18,28.2);
        Phone p3 = new Phone("13533876713",5,200.2);
        Phone p4 = new Phone("13533876714",15,20.0);
        Phone p5 = new Phone("13533876715",22,52.0);
        Phone[] phones = {p1,p2,p3,p4,p5};
        Arrays.sort(phones);
        Arrays.stream(phones).forEach(System.out::println);

    }
}
